﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Square:Shape
    {
        private double sideLen;

        public double SideLen { get => sideLen; set => sideLen = value; }

        
        public  Square(double sideLen)
        {
            this.SideLen = sideLen;
        }
        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine("正方形面积为："+(sideLen*sideLen));
        }
    }
}
